package org.inspiration.dudu.web.service.message.impl;

import lombok.RequiredArgsConstructor;
import org.inspiration.dudu.message.model.vo.MessageVO;
import org.inspiration.dudu.message.service.MessageService;
import org.inspiration.dudu.web.service.message.MessageFacadeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class MessageFacadeServiceImpl implements MessageFacadeService {

    private final MessageService messageService;

    @Override
    public List<MessageVO> getRecentMessages(Long fromUserId, Long toUserId, Integer pageNum, Integer pageSize) {
        return messageService.getRecentMessages(fromUserId, toUserId, pageNum, pageSize);
    }
}
